<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gimptextlayer: GIMP 3 Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GIMP 3 Library Reference Manual">
<link rel="up" href="libgimp-image.html" title="Manipulating Images and their Properties">
<link rel="prev" href="GimpSelection.html" title="gimpselection">
<link rel="next" href="libgimp3-gimptexttool.html" title="gimptexttool">
<meta name="generator" content="GTK-Doc V1.33.0 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#libgimp3-gimptextlayer.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="libgimp-image.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GimpSelection.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libgimp3-gimptexttool.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="libgimp3-gimptextlayer"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgimp3-gimptextlayer.top_of_page"></a>gimptextlayer</span></h2>
<p>gimptextlayer — Functions for querying and manipulating text layers.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libgimp3-gimptextlayer.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="GimpLayer.html" title="gimplayer"><span class="returnvalue">GimpLayer</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-new" title="gimp_text_layer_new ()">gimp_text_layer_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-text" title="gimp_text_layer_get_text ()">gimp_text_layer_get_text</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-text" title="gimp_text_layer_set_text ()">gimp_text_layer_set_text</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-markup" title="gimp_text_layer_get_markup ()">gimp_text_layer_get_markup</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-font" title="gimp_text_layer_get_font ()">gimp_text_layer_get_font</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-font" title="gimp_text_layer_set_font ()">gimp_text_layer_set_font</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gdouble</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-font-size" title="gimp_text_layer_get_font_size ()">gimp_text_layer_get_font_size</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-font-size" title="gimp_text_layer_set_font_size ()">gimp_text_layer_set_font_size</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-antialias" title="gimp_text_layer_get_antialias ()">gimp_text_layer_get_antialias</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-antialias" title="gimp_text_layer_set_antialias ()">gimp_text_layer_set_antialias</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-kerning" title="gimp_text_layer_get_kerning ()">gimp_text_layer_get_kerning</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-kerning" title="gimp_text_layer_set_kerning ()">gimp_text_layer_set_kerning</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gchar</span> *
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-language" title="gimp_text_layer_get_language ()">gimp_text_layer_get_language</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-language" title="gimp_text_layer_set_language ()">gimp_text_layer_set_language</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../html/libgimpbase3-gimpbaseenums.html#GimpTextDirection"><span class="returnvalue">GimpTextDirection</span></a>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-base-direction" title="gimp_text_layer_get_base_direction ()">gimp_text_layer_get_base_direction</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-base-direction" title="gimp_text_layer_set_base_direction ()">gimp_text_layer_set_base_direction</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../html/libgimpbase3-gimpbaseenums.html#GimpTextJustification"><span class="returnvalue">GimpTextJustification</span></a>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-justification" title="gimp_text_layer_get_justification ()">gimp_text_layer_get_justification</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-justification" title="gimp_text_layer_set_justification ()">gimp_text_layer_set_justification</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-color" title="gimp_text_layer_get_color ()">gimp_text_layer_get_color</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-color" title="gimp_text_layer_set_color ()">gimp_text_layer_set_color</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gdouble</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-indent" title="gimp_text_layer_get_indent ()">gimp_text_layer_get_indent</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-indent" title="gimp_text_layer_set_indent ()">gimp_text_layer_set_indent</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gdouble</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-line-spacing" title="gimp_text_layer_get_line_spacing ()">gimp_text_layer_get_line_spacing</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-line-spacing" title="gimp_text_layer_set_line_spacing ()">gimp_text_layer_set_line_spacing</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gdouble</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-letter-spacing" title="gimp_text_layer_get_letter_spacing ()">gimp_text_layer_get_letter_spacing</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-letter-spacing" title="gimp_text_layer_set_letter_spacing ()">gimp_text_layer_set_letter_spacing</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../html/libgimpbase3-gimpbaseenums.html#GimpTextHintStyle"><span class="returnvalue">GimpTextHintStyle</span></a>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-get-hint-style" title="gimp_text_layer_get_hint_style ()">gimp_text_layer_get_hint_style</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-set-hint-style" title="gimp_text_layer_set_hint_style ()">gimp_text_layer_set_hint_style</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="libgimp3-gimptextlayer.html#gimp-text-layer-resize" title="gimp_text_layer_resize ()">gimp_text_layer_resize</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libgimp3-gimptextlayer.description"></a><h2>Description</h2>
<p>Functions for querying and manipulating text layers.</p>
</div>
<div class="refsect1">
<a name="libgimp3-gimptextlayer.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gimp-text-layer-new"></a><h3>gimp_text_layer_new ()</h3>
<pre class="programlisting"><a class="link" href="GimpLayer.html" title="gimplayer"><span class="returnvalue">GimpLayer</span></a> *
gimp_text_layer_new (<em class="parameter"><code><a class="link" href="GimpImage.html" title="gimpimage"><span class="type">GimpImage</span></a> *image</code></em>,
                     <em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>,
                     <em class="parameter"><code>const <span class="type">gchar</span> *fontname</code></em>,
                     <em class="parameter"><code><span class="type">gdouble</span> size</code></em>,
                     <em class="parameter"><code><a href="/local/head/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"><span class="type">GimpUnit</span></a> unit</code></em>);</pre>
<p>Creates a new text layer.</p>
<p>This procedure creates a new text layer. The arguments are kept as
simple as necessary for the normal case. All text attributes,
however, can be modified with the appropriate
gimp_text_layer_set_*() procedures. The new layer still needs to be
added to the image, as this is not automatic. Add the new layer
using <a class="link" href="GimpImage.html#gimp-image-insert-layer" title="gimp_image_insert_layer ()"><code class="function">gimp_image_insert_layer()</code></a>.</p>
<div class="refsect3">
<a name="gimp-text-layer-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>image</p></td>
<td class="parameter_description"><p>The image.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>text</p></td>
<td class="parameter_description"><p>The text to generate (in UTF-8 encoding).</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>fontname</p></td>
<td class="parameter_description"><p>The name of the font.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>size</p></td>
<td class="parameter_description"><p>The size of text in either pixels or points.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>unit</p></td>
<td class="parameter_description"><p>The units of specified size.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-new.returns"></a><h4>Returns</h4>
<p>The new text layer. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-text"></a><h3>gimp_text_layer_get_text ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> *
gimp_text_layer_get_text (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Get the text from a text layer as string.</p>
<p>This procedure returns the text from a text layer as a string.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-text.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-text.returns"></a><h4>Returns</h4>
<p>The text from the specified text layer.
The returned value must be freed with <code class="function">g_free()</code>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-text"></a><h3>gimp_text_layer_set_text ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_text (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                          <em class="parameter"><code>const <span class="type">gchar</span> *text</code></em>);</pre>
<p>Set the text of a text layer.</p>
<p>This procedure changes the text of a text layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-text.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>text</p></td>
<td class="parameter_description"><p>The new text to set.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-text.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-markup"></a><h3>gimp_text_layer_get_markup ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> *
gimp_text_layer_get_markup (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Get the markup from a text layer as string.</p>
<p>This procedure returns the markup of the styles from a text layer.
The markup will be in the form of Pango's markup - See
https://www.pango.org/ for more information about Pango and its
markup. Note: Setting the markup of a text layer using Pango's
markup is not supported for now.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-markup.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-markup.returns"></a><h4>Returns</h4>
<p>The markup which represents the style of the specified text layer.
The returned value must be freed with <code class="function">g_free()</code>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-8.html#api-index-2.8">2.8</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-font"></a><h3>gimp_text_layer_get_font ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> *
gimp_text_layer_get_font (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Get the font from a text layer as string.</p>
<p>This procedure returns the name of the font from a text layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-font.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-font.returns"></a><h4>Returns</h4>
<p>The font which is used in the specified text layer.
The returned value must be freed with <code class="function">g_free()</code>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-font"></a><h3>gimp_text_layer_set_font ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_font (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                          <em class="parameter"><code>const <span class="type">gchar</span> *font</code></em>);</pre>
<p>Set the font of a text layer.</p>
<p>This procedure modifies the font used in the specified text layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-font.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>font</p></td>
<td class="parameter_description"><p>The new font to use.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-font.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-font-size"></a><h3>gimp_text_layer_get_font_size ()</h3>
<pre class="programlisting"><span class="returnvalue">gdouble</span>
gimp_text_layer_get_font_size (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                               <em class="parameter"><code><a href="/local/head/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"><span class="type">GimpUnit</span></a> *unit</code></em>);</pre>
<p>Get the font size from a text layer.</p>
<p>This procedure returns the size of the font which is used in a text
layer. You will receive the size as a float 'font-size' in 'unit'
units.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-font-size.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>unit</p></td>
<td class="parameter_description"><p>The unit used for the font size. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-font-size.returns"></a><h4>Returns</h4>
<p> The font size.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-font-size"></a><h3>gimp_text_layer_set_font_size ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_font_size (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                               <em class="parameter"><code><span class="type">gdouble</span> font_size</code></em>,
                               <em class="parameter"><code><a href="/local/head/share/gtk-doc/html/libgimpbase/libgimpbase-gimpunit.html#GimpUnit"><span class="type">GimpUnit</span></a> unit</code></em>);</pre>
<p>Set the font size.</p>
<p>This procedure changes the font size of a text layer. The size of
your font will be a double 'font-size' of 'unit' units.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-font-size.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>font_size</p></td>
<td class="parameter_description"><p>The font size.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>unit</p></td>
<td class="parameter_description"><p>The unit to use for the font size.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-font-size.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-antialias"></a><h3>gimp_text_layer_get_antialias ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_get_antialias (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Check if antialiasing is used in the text layer.</p>
<p>This procedure checks if antialiasing is enabled in the specified
text layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-antialias.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-antialias.returns"></a><h4>Returns</h4>
<p> A flag which is true if antialiasing is used for rendering the font in the text layer.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-antialias"></a><h3>gimp_text_layer_set_antialias ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_antialias (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                               <em class="parameter"><code><span class="type">gboolean</span> antialias</code></em>);</pre>
<p>Enable/disable anti-aliasing in a text layer.</p>
<p>This procedure enables or disables anti-aliasing of the text in a
text layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-antialias.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>antialias</p></td>
<td class="parameter_description"><p>Enable/disable antialiasing of the text.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-antialias.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-kerning"></a><h3>gimp_text_layer_get_kerning ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_get_kerning (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Check if kerning is used in the text layer.</p>
<p>This procedure checks if kerning is enabled in the specified text
layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-kerning.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-kerning.returns"></a><h4>Returns</h4>
<p> A flag which is true if kerning is used in the text layer.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-kerning"></a><h3>gimp_text_layer_set_kerning ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_kerning (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                             <em class="parameter"><code><span class="type">gboolean</span> kerning</code></em>);</pre>
<p>Enable/disable kerning in a text layer.</p>
<p>This procedure enables or disables kerning in a text layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-kerning.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>kerning</p></td>
<td class="parameter_description"><p>Enable/disable kerning in the text.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-kerning.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-language"></a><h3>gimp_text_layer_get_language ()</h3>
<pre class="programlisting"><span class="returnvalue">gchar</span> *
gimp_text_layer_get_language (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Get the language used in the text layer.</p>
<p>This procedure returns the language string which is set for the text
in the text layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-language.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-language.returns"></a><h4>Returns</h4>
<p>The language used in the text layer.
The returned value must be freed with <code class="function">g_free()</code>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-language"></a><h3>gimp_text_layer_set_language ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_language (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                              <em class="parameter"><code>const <span class="type">gchar</span> *language</code></em>);</pre>
<p>Set the language of the text layer.</p>
<p>This procedure sets the language of the text in text layer. For some
scripts the language has an influence of how the text is rendered.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-language.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>language</p></td>
<td class="parameter_description"><p>The new language to use for the text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-language.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-base-direction"></a><h3>gimp_text_layer_get_base_direction ()</h3>
<pre class="programlisting"><a href="../html/libgimpbase3-gimpbaseenums.html#GimpTextDirection"><span class="returnvalue">GimpTextDirection</span></a>
gimp_text_layer_get_base_direction (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Get the base direction used for rendering the text layer.</p>
<p>This procedure returns the base direction used for rendering the
text in the text layer</p>
<div class="refsect3">
<a name="gimp-text-layer-get-base-direction.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-base-direction.returns"></a><h4>Returns</h4>
<p> The based direction used for the text layer.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-base-direction"></a><h3>gimp_text_layer_set_base_direction ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_base_direction (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                                    <em class="parameter"><code><a href="../html/libgimpbase3-gimpbaseenums.html#GimpTextDirection"><span class="type">GimpTextDirection</span></a> direction</code></em>);</pre>
<p>Set the base direction in the text layer.</p>
<p>This procedure sets the base direction used in applying the Unicode
bidirectional algorithm when rendering the text.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-base-direction.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>direction</p></td>
<td class="parameter_description"><p>The base direction of the text.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-base-direction.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-justification"></a><h3>gimp_text_layer_get_justification ()</h3>
<pre class="programlisting"><a href="../html/libgimpbase3-gimpbaseenums.html#GimpTextJustification"><span class="returnvalue">GimpTextJustification</span></a>
gimp_text_layer_get_justification (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Get the text justification information of the text layer.</p>
<p>This procedure returns the alignment of the lines in the text layer
relative to each other.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-justification.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-justification.returns"></a><h4>Returns</h4>
<p> The justification used in the text layer.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-justification"></a><h3>gimp_text_layer_set_justification ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_justification (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                                   <em class="parameter"><code><a href="../html/libgimpbase3-gimpbaseenums.html#GimpTextJustification"><span class="type">GimpTextJustification</span></a> justify</code></em>);</pre>
<p>Set the justification of the text in a text layer.</p>
<p>This procedure sets the alignment of the lines in the text layer
relative to each other.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-justification.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>justify</p></td>
<td class="parameter_description"><p>The justification for your text.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-justification.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-color"></a><h3>gimp_text_layer_get_color ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_get_color (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                           <em class="parameter"><code><a href="../html/libgimpcolor3-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>);</pre>
<p>Get the color of the text in a text layer.</p>
<p>This procedure returns the color of the text in a text layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-color.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>color</p></td>
<td class="parameter_description"><p>The color of the text. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="Out parameter, where caller must allocate storage."><span class="acronym">out caller-allocates</span></acronym>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-color.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-color"></a><h3>gimp_text_layer_set_color ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_color (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                           <em class="parameter"><code>const <a href="../html/libgimpcolor3-GimpRGB.html#GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>);</pre>
<p>Set the color of the text in the text layer.</p>
<p>This procedure sets the text color in the text layer 'layer'.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-color.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>color</p></td>
<td class="parameter_description"><p>The color to use for the text.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-color.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-indent"></a><h3>gimp_text_layer_get_indent ()</h3>
<pre class="programlisting"><span class="returnvalue">gdouble</span>
gimp_text_layer_get_indent (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Get the line indentation of text layer.</p>
<p>This procedure returns the indentation of the first line in a text
layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-indent.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-indent.returns"></a><h4>Returns</h4>
<p> The indentation value of the first line.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-indent"></a><h3>gimp_text_layer_set_indent ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_indent (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                            <em class="parameter"><code><span class="type">gdouble</span> indent</code></em>);</pre>
<p>Set the indentation of the first line in a text layer.</p>
<p>This procedure sets the indentation of the first line in the text
layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-indent.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>indent</p></td>
<td class="parameter_description"><p>The indentation for the first line.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-indent.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-line-spacing"></a><h3>gimp_text_layer_get_line_spacing ()</h3>
<pre class="programlisting"><span class="returnvalue">gdouble</span>
gimp_text_layer_get_line_spacing (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Get the spacing between lines of text.</p>
<p>This procedure returns the line-spacing between lines of text in a
text layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-line-spacing.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-line-spacing.returns"></a><h4>Returns</h4>
<p> The line-spacing value.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-line-spacing"></a><h3>gimp_text_layer_set_line_spacing ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_line_spacing (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                                  <em class="parameter"><code><span class="type">gdouble</span> line_spacing</code></em>);</pre>
<p>Adjust the line spacing in a text layer.</p>
<p>This procedure sets the additional spacing used between lines a text
layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-line-spacing.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>line_spacing</p></td>
<td class="parameter_description"><p>The additional line spacing to use.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-line-spacing.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-letter-spacing"></a><h3>gimp_text_layer_get_letter_spacing ()</h3>
<pre class="programlisting"><span class="returnvalue">gdouble</span>
gimp_text_layer_get_letter_spacing (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Get the letter spacing used in a text layer.</p>
<p>This procedure returns the additional spacing between the single
glyphs in a text layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-letter-spacing.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-letter-spacing.returns"></a><h4>Returns</h4>
<p> The letter-spacing value.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-letter-spacing"></a><h3>gimp_text_layer_set_letter_spacing ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_letter_spacing (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                                    <em class="parameter"><code><span class="type">gdouble</span> letter_spacing</code></em>);</pre>
<p>Adjust the letter spacing in a text layer.</p>
<p>This procedure sets the additional spacing between the single glyphs
in a text layer.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-letter-spacing.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>letter_spacing</p></td>
<td class="parameter_description"><p>The additional letter spacing to use.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-letter-spacing.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-6.html#api-index-2.6">2.6</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-get-hint-style"></a><h3>gimp_text_layer_get_hint_style ()</h3>
<pre class="programlisting"><a href="../html/libgimpbase3-gimpbaseenums.html#GimpTextHintStyle"><span class="returnvalue">GimpTextHintStyle</span></a>
gimp_text_layer_get_hint_style (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>);</pre>
<p>Get information about hinting in the specified text layer.</p>
<p>This procedure provides information about the hinting that is being
used in a text layer. Hinting can be optimized for fidelity or
contrast or it can be turned entirely off.</p>
<div class="refsect3">
<a name="gimp-text-layer-get-hint-style.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-get-hint-style.returns"></a><h4>Returns</h4>
<p> The hint style used for font outlines.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-8.html#api-index-2.8">2.8</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-set-hint-style"></a><h3>gimp_text_layer_set_hint_style ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_set_hint_style (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                                <em class="parameter"><code><a href="../html/libgimpbase3-gimpbaseenums.html#GimpTextHintStyle"><span class="type">GimpTextHintStyle</span></a> style</code></em>);</pre>
<p>Control how font outlines are hinted in a text layer.</p>
<p>This procedure sets the hint style for font outlines in a text
layer. This controls whether to fit font outlines to the pixel grid,
and if so, whether to optimize for fidelity or contrast.</p>
<div class="refsect3">
<a name="gimp-text-layer-set-hint-style.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>style</p></td>
<td class="parameter_description"><p>The new hint style.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-set-hint-style.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-8.html#api-index-2.8">2.8</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-text-layer-resize"></a><h3>gimp_text_layer_resize ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
gimp_text_layer_resize (<em class="parameter"><code><a class="link" href="GimpLayer.html" title="gimplayer"><span class="type">GimpLayer</span></a> *layer</code></em>,
                        <em class="parameter"><code><span class="type">gdouble</span> width</code></em>,
                        <em class="parameter"><code><span class="type">gdouble</span> height</code></em>);</pre>
<p>Resize the box of a text layer.</p>
<p>This procedure changes the width and height of a text layer while
keeping it as a text layer and not converting it to a bitmap like
<a class="link" href="GimpLayer.html#gimp-layer-resize" title="gimp_layer_resize ()"><code class="function">gimp_layer_resize()</code></a> would do.</p>
<div class="refsect3">
<a name="gimp-text-layer-resize.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>layer</p></td>
<td class="parameter_description"><p>The text layer.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>The new box width in pixels.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>The new box height in pixels.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-text-layer-resize.returns"></a><h4>Returns</h4>
<p> TRUE on success.</p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-8.html#api-index-2.8">2.8</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.0</div>
</body>
</html>